package com.lzcu.maoyan.mapreduce.service;

import java.util.Map;

/**
 * @author WangLiang
 * @date `2024/3/27`
 */
public interface PhoenixMapper {
    /**
     * 插入数据
     * @param input
     * @throws Exception
     */
    public void insertMovie(Map<String, Object> input) throws Exception;

    /**
     * 查询某个电影某个月的票房
     * @param movieName 电影名
     * @param timeData yyyy-MM
     * @return
     * @throws Exception
     */
    long getMovieBoxOffice(String movieName, String timeData) throws Exception;

    /**
     * 查询电影最大票房
     * @param movieName 电影名
     * @return
     * @throws Exception
     */
    long getMovieBoxOffice(String movieName) throws Exception;
}
